<template>
  <div class="addmore">
    <div class="center">
      <div class="top">
        <span class="del" @click="goback()">取消</span>
        <div class="tittle">发笔记</div>
        <p>我要吐槽</p>
      </div>
      <div class="con">
        <div class="pic">
          <img src="../../../public/cheyi/putpic.jpg" alt />
        </div>
        <div class="tip">填写标题更容易上首页哦~</div>
        <div class="add">添加商户/地点的笔记更容易被推荐上首页哦~</div>
        <div class="tiger">
          <p>插入</p>
          <span>
            <van-icon name="shop-o" />店/地点
            <van-icon name="arrow" />
          </span>
          <span>
            <van-icon name="bulb-o" />菜品
            <van-icon name="arrow" />
          </span>
        </div>
      </div>
      <div class="gray"></div>
      <div class="addstore">
        <div class="left">
          <van-icon name="location-o" />
          <span>添加店/地点</span>
        </div>
        <div class="right">
          <span class="littlefont">分享去处可获得更多曝光</span>
          <van-icon name="arrow" />
        </div>
      </div>
      <div class="gray"></div>

      <div class="addstore">
        <div class="left">
          <van-icon name="guide-o" />
          <span>添加话题</span>
        </div>
        <div class="right">
          <van-icon name="arrow" />
        </div>
      </div>
      <div class="node">
        <p>
          笔记发布小贴士
          <van-icon name="warning-o" />
        </p>
      </div>
    </div>
    <div class="bottom">
      <div class="left">
        <span class="iconfont icon-caogaoxiang"></span>
        <p>存草稿</p>
      </div>
      <div class="right">发布</div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  methods: {
    goback() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="scss" scoped>
.addmore {
  width: 100%;
  height: 177.867vw;
  box-sizing: border-box;
  // overflow: auto;
  position: relative;
  overflow: hidden;
  .center {
    width: 95%;
    margin: auto;
    .top {
      width: 100%;
      height: 12vw;
      line-height: 12vw;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      position: sticky;
      .del {
        font-size: 3.733vw;
        font-weight: bolder;
      }
      .tittle {
        position: absolute;
        left: 44%;
        font-size: 4.267vw;
      }
      p {
        font-size: 3.733vw;
      }
    }
    .con {
      width: 100%;
      color: #aaaaaa;

      .pic {
        height: 26.667vw;
        padding-bottom: 1.333vw;
        img {
          width: 21.333vw;
          height: 21.333vw;
          margin-top: 2.667vw;
        }
      }
      .tip {
        font-size: 4.267vw;
        height: 10.667vw;
        line-height: 10.667vw;
        font-weight: 600;
        border-bottom: 0.267vw solid #ccc9c9;
      }
      .add {
        padding: 2.667vw 0 32vw 0;
        font-size: 3.733vw;
      }
      .tiger {
        padding: 2.667vw 0;
        color: #0f0f0f;
        font-size: 3.2vw;
        p {
          display: inline-block;
        }
        span {
          background-color: #f4f4f4;
          border-radius: 4vw;
        }
        p,
        span {
          padding: 1.333vw;
          margin-right: 2.667vw;
        }
      }
    }
    .gray {
      background-color: #f0f0f0;
      width: 110%;
      height: 2.667vw;
      margin-left: -5%;
    }
    .addstore {
      width: 100%;
      height: 13.333vw;
      line-height: 13.333vw;
      font-size: 4.267vw;
      display: flex;
      justify-content: space-between;
      color: #0f0f0f;
      .left {
        font-weight: bolder;
      }
      span {
        padding: 0 2.667vw;
      }
      .right {
        font-size: 3.2vw;
        color: #ccc9c9;
      }
    }
    .node {
      background-color: #f0f0f0;
      width: 110%;
      height: 40vw;
      margin-left: -5%;
      color: #9e9e9e;
      text-align: center;
      p {
        padding-top: 2.667vw;
      }
    }
  }
  .bottom {
    width: 100%;
    box-sizing: border-box;
    padding-left: 2.5%;
    height: 17.333vw;
    background-color: #fff;
    margin: auto;
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    text-align: center;

    .left {
      padding-right: 4vw;
      p {
        font-size: 2.667vw;
      }
    }
    .right {
      height: 10.133vw;
      line-height: 10.133vw;
      flex-grow: 1;
      border-radius: 5.067vw;
      background-color: #fe6634;
      color: #fff;
      font-size: 4.267vw;
      font-weight: 400;
    }
  }
}
</style>